<?php

namespace scenic\models;

use Yii;

/**
 * This is the model class for table "scenic_detail".
 *
 * @property integer $id
 * @property integer $scenic_id
 * @property string $device
 * @property integer $create_time
 * @property string $desc
 */
class ScenicDetail extends \yii\db\ActiveRecord
{

    public $rake;
    public $total_rake;
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'scenic_detail';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['scenic_id', 'create_time'], 'integer'],
            [['device', 'desc'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'scenic_id' => 'Scenic ID',
            'device' => 'Device',
            'create_time' => 'Create Time',
            'desc' => 'Desc',
        ];
    }
}
